package One_1;

import java.util.Scanner;

/**
 * Project Name: one_java
 * File Name: Guessnumber
 *
 * @version 1.0
 * @author:wenerduo
 * @Date: 2022/01/02/下午 1:42
 * Copyright (c) 2022,
 */
public class Guessnumber {
    public static void main(String[] args) {
Scanner  scanner=new Scanner(System.in);
System.out.println("请您输入一个数字");
int result =scanner.nextInt();
int num=0;
while (result!=num){
    System.out.println("请你猜的数字:");
    num=scanner.nextInt();
    if (num>result){
        System.out.println("大了");
    }else if (num<result){
        System.out.println("小了");
    }else {
        System.out.println("恭喜你,猜对了:6666");
    }
}
    }
}
